<template>
<transition name="el-zoom-in-center">
<div class="JNPF-preview-main">
    <div class="JNPF-common-page-header">
        <el-page-header @back="goBack"
                        content="详情1"/>
        <div class="options">
            <el-button @click="goBack">取 消</el-button>
        </div>
    </div>
<el-row :gutter="15" class=" main" :style="{margin: '0 auto',width: '100%'}">
<el-form ref="elForm" :model="dataForm" size="small" label-width="100px" label-position="right" >
    <template v-if="!loading">
	    <el-col :span="24" >
		<el-form-item  label-width="0">
		<groupTitle  content-position="center"  :closable= "false"  content ="单据转换" >
		</groupTitle>
	</el-form-item>
	</el-col>
            <el-col :span="24" >
                <el-form-item  label="来源表名"   prop="sourcetable" >
                        <p>{{dataForm.sourcetable}}</p>
                </el-form-item>
            </el-col>
            <el-col :span="12" >
                <el-form-item  label="来源表名描述"   prop="sourcemark" >
                        <p>{{dataForm.sourcemark}}</p>
                </el-form-item>
            </el-col>
            <el-col :span="12" >
                <el-form-item  label="来源单据类型"   prop="sourcetypecode" >
                        <p>{{dataForm.sourcetypecode}}</p>
                </el-form-item>
            </el-col>
            <el-col :span="24" >
                <el-form-item  label="目标表名"   prop="targettable" >
                        <p>{{dataForm.targettable}}</p>
                </el-form-item>
            </el-col>
            <el-col :span="12" >
                <el-form-item  label="目标表名描述"   prop="targetmark" >
                        <p>{{dataForm.targetmark}}</p>
                </el-form-item>
            </el-col>
            <el-col :span="12" >
                <el-form-item  label="目标单据类型"   prop="targettypecode" >
                        <p>{{dataForm.targettypecode}}</p>
                </el-form-item>
            </el-col>
            <el-col :span="24" >
                <el-form-item  label="描述"   prop="description" >
                        <p>{{dataForm.description}}</p>
                </el-form-item>
            </el-col>
            <el-col :span="24"  >
                <el-divider   content-position="center" >
尾部信息             </el-divider>
            </el-col>
            <el-col :span="24" >
                <el-form-item  label="所属组织"   prop="org" >
                        <p>{{dataForm.org}}</p>
                </el-form-item>
            </el-col>
            <el-col :span="24" >
                <el-form-item  label="创建用户"   prop="creatoruserid" >
                        <p>{{dataForm.creatoruserid}}</p>
                </el-form-item>
            </el-col>
            <el-col :span="24" >
                <el-form-item  label="创建时间"   prop="creatortime" >
                        <p>{{dataForm.creatortime}}</p>
                </el-form-item>
            </el-col>
            <el-col :span="24" >
                <el-form-item  label="修改用户"   prop="lastmodifyuserid" >
                        <p>{{dataForm.lastmodifyuserid}}</p>
                </el-form-item>
            </el-col>
            <el-col :span="24" >
                <el-form-item  label="修改时间"   prop="lastmodifytime" >
                        <p>{{dataForm.lastmodifytime}}</p>
                </el-form-item>
            </el-col>
    </template>
</el-form>
    </el-row>
    </div>
</transition>
</template>
<script>
    import request from '@/utils/request'
    import PrintBrowse from '@/components/PrintBrowse'
    import jnpf from '@/utils/jnpf'
    export default {
        components: {PrintBrowse},
        props: [],
        data() {
            return {
                visible: false,
                loading: false,
                printBrowseVisible: false,
                printId: '',
            dataForm: {
                id :'',
                            sourcetable : "",
                            sourcemark : '',
                            sourcetypecode : '',
                            targettable : "",
                            targetmark : '',
                            targettypecode : '',
                            description : '',
                            org : [],
                            creatoruserid : "",
                            creatortime : "",
                            lastmodifyuserid : "",
                            lastmodifytime : "",
                            id : '',
            },

        }
        },
        computed: {},
        watch: {},
        created() {

        },
        mounted() {},
        methods: {
            dataInfo(dataAll){
                let _dataAll =dataAll
                this.dataForm = _dataAll
            },

                goBack() {
                    this.$emit('refresh')
                },
            init(id) {
                this.dataForm.id = id || 0;
                this.visible = true;
                this.$nextTick(() => {
                    if(this.dataForm.id){
                        this.loading = true
                        request({
                            url: '/api/example/SmBillchange/detail/'+this.dataForm.id,
                            method: 'get'
                        }).then(res => {
                            this.dataInfo(res.data)
                            this.loading = false
                        })
                    }

                })
            },
        },
    }

</script>
